.content-renderer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  padding: 0rem;
  /* background-color: #f9f9f9; */
  /* border: 0px solid #ddd; */
  border-radius: 4px;
  margin: 10px auto;
  max-width: 800px;
}

.content-renderer h1,
.content-renderer h2,
.content-renderer h3 {
  color: #222;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.markdown-table th,
.markdown-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.markdown-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

/* 在全局或组件 CSS 中添加 */
.content-renderer blockquote {
  margin: 1em 0;
  padding: 0 1em;
  color: #666;
  border-left: 4px solid #ddd;
  background: #f8f8f8;
}

/* 处理空行（通过 \n\n 生成的段落） */
.content-renderer p:empty::before {
  content: "";
  display: block;
  height: 1em;  /* 模拟空行高度 */
}

.custom-blockquote {
  border-left: 4px solid #ccc;
  padding-left: 10px;
  margin: 10px 0;
}



.custom-code-block {
  background-color: #282c34;
  color: #d1d5da;
  padding: 1rem;
  border-radius: 4px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.code-block-container {
  position: relative;
  margin: 1rem 0;
}

.custom-code-block button {
  position: absolute;
  top: 5px;
  right: 10px;
  background-color: #333;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.copy-button:hover {
  background-color: #444;
}

.language-python {
  color: #4E98B9;
}
/* 
.inline-code {
  background-color: #282c34;
  color: #f8f8f2;
  padding: 2px 4px;
  border-radius: 3px;
} */

/* 内联代码样式 */
.inline-code {
  background-color: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  color: #c53030;
}

.highlight {
  color: #c7254e;
  background-color: #f9f2f4;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* margin: 1rem 0; */
}

/* 代码块样式 */
/* pre {
  background: #2d2d2d !important;
  border-radius: 8px;
  padding: 1rem !important;
  margin: 1rem 0 !important;
  overflow-x: auto;
}

.code-toolbar {
  background: #343434;
  border-bottom: 1px solid #404040;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
} */